home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
How Would You Survive?
/
How Would You Survive (1995)(Grolier)[Mac-PC].iso
/
pc
/
shared.dir
/
01950_Script_Egypt Global Buttons
< prev
next >
Wrap
Text File
|
1995-09-13
|
9KB
|
301 lines
Global gBtn1, gBtn2, gBtn3, gBtn4, gBtn5, gBtn6, gBtn7, gBtn8, gBtn9, ¼
gBtn17, gBtn18, gNewMarker, gTheHelpIsOn,gQuest
on InitBYLDemo
set gBtn4 = birth(script "aTheatreButton", 32, 140, "SE141000.AIF", "EBegin", "HandCursor")
end
on EInitGlobals
set ScriptNumber = the number of cast "a3StateButton"
set gBtn1 = birth(script "aPullDown", 29, 125, 127, "SE140800.AIF", "EGlossary", "EIndex", "HandCursor")
set gBtn2 = birth(script ScriptNumber, 30, 134, "SE141700.AIF", "DoNothing", "HandCursor")
set gBtn3 = birth(script ScriptNumber, 31, 137, "SE141600.AIF", "DoNothing", "HandCursor")
set gBtn4 = birth(script ScriptNumber, 32, 140, "SE141000.AIF", "EBegin", "HandCursor")
set gBtn5 = birth(script ScriptNumber, 33, 143, "SE141100.AIF", "Table", "HandCursor")
set gBtn6 = birth(script 1983, 34, 146, 460, "EMap", "ETime", "EBasicFacts",¼
"HowDoWeKnow", "HandCursor", "SE141200.AIF", "")
set gBtn7 = birth(script ScriptNumber, 35, 153, "SE141300.AIF", "EGame", "HandCursor")
set gBtn8 = birth(script ScriptNumber, 36, 156, "SE010251.AIF", "HelpToggle", "HandCursor")
set gBtn9 = birth(script ScriptNumber, 37, 159, "SE141500.AIF", "Quitit", "HandCursor")
set gQuest = birth(script "aRandomQuestion", 44, 45, 148, 339, 173, 1501, 2, "",¼
"", "", "", 1, "SE143000.AIF")
SwitchList (gQuest, 1)
end
on EGlobalSetUpFromTheatre
set ScriptNumber = the number of cast "a3StateButton"
set gBtn1 = birth(script "aPullDown", 29, 125, 127, "SE140800.AIF", "EGlossary", "EIndex", "HandCursor")
set gBtn2 = birth(script ScriptNumber, 30, 134, "SE141700.AIF", "DoNothing", "HandCursor")
set gBtn3 = birth(script ScriptNumber, 31, 137, "SE141600.AIF", "DoNothing", "HandCursor")
set gBtn4 = birth(script ScriptNumber, 32, 140, "SE141000.AIF", "EBegin", "HandCursor")
set gBtn5 = birth(script ScriptNumber, 33, 143, "SE141100.AIF", "Table", "HandCursor")
set gBtn6 = birth(script 1983, 34, 146, 460, "EMap", "ETime", "EBasicFacts",¼
"HowDoWeKnow", "HandCursor", "SE141200.AIF", "")
set gBtn7 = birth(script ScriptNumber, 35, 153, "SE141300.AIF", "EGame", "HandCursor")
set gBtn8 = birth(script ScriptNumber, 36, 156, "SE010251.AIF", "HelpToggle", "HandCursor")
set gBtn9 = birth(script ScriptNumber, 37, 159, "SE141500.AIF", "Quitit", "HandCursor")
SwitchList (gQuest, 1)
end
on EGlobalsSetUp
setNewFunctions (gBtn1, "EGlossary", "EIndex")
setNewFunction (gBtn4, "EBegin")
setNewFunction (gBtn5, "Table")
setNewFunctions (gBtn6, "EMap", "ETime", "EBasicFacts", "HowDoWeKnow")
setNewFunction (gBtn7, "EGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 1)
end
on EGlobalsSetUpMap
setNewFunctions (gBtn1, "EGlossary", "EIndex")
setNewFunction (gBtn4, "EBegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "ResetEMaps", "ETime", "EBasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "EGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 1)
end
on EGlobalsSetUpGame
setNewFunctions (gBtn1, "EGlossary", "EIndex")
setNewFunction (gBtn4, "EBegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "EMap", "ETime", "EBasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "DoNothing")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 1)
end
on EGlobalsSetUpIndex
setNewFunctions (gBtn1, "EGlossary", "DoNothing")
setNewFunction (gBtn2, "EGlossary")
setNewFunction (gBtn3, "EBegin")
setNewFunction (gBtn4, "EBegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "EMap", "ETime", "EBasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "EGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 1)
end
on EGlobalsSetUpGlossary
setNewFunctions (gBtn1, "DoNothing", "EIndex")
setNewFunction (gBtn2, "EBegin")
setNewFunction (gBtn3, "EIndex")
setNewFunction (gBtn4, "EBegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "EMap", "ETime", "EBasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "EGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 1)
end
on EGlobalsSetUpTime
setNewFunctions (gBtn1, "EGlossary", "EIndex")
setNewFunction (gBtn4, "EBegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "EMap", "DoNothing", "EBasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "EGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 1)
end
on EGlobalsSetUpBF
setNewFunctions (gBtn1, "EGlossary", "EIndex")
setNewFunction (gBtn4, "EBegin")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "EMap", "ETime", "DoNothing", "HowDoWeKnowCross")
setNewFunction (gBtn7, "EGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 1)
end
on EGlobalsSetUpPan
setNewFunctions (gBtn1, "EGlossary", "EIndex")
setNewFunction (gBtn4, "DoNothing")
setNewFunction (gBtn5, "TableCross")
setNewFunctions (gBtn6, "EMap", "ETime", "EBasicFacts", "HowDoWeKnowCross")
setNewFunction (gBtn7, "EGame")
setNewFunction (gBtn8, "HelpToggle")
SwitchList (gQuest, 1)
end
on EGlobalRollover
RolloverJob(gQuest)
if (the MouseV < 250) then
if hilightPullDown (gBtn1) then
return true
else
if ObjectP(gBtn17) then
if hilight (gBtn17) then
return true
else
if ObjectP(gBtn18) then
if hilight (gBtn18) then
return true
end if
end if
end if
end if
end if
else
if rollover(38) then
if gTheHelpIsOn = 1 then
puppetsound "SE142100.AIF"
updatestage
repeat while rollover(38)
nothing
end repeat
end if
else
if hilight (gBtn2) then
return true
else
if hilight (gBtn3) then
return true
else
if hilight (gBtn4) then
return true
else
if hilight (gBtn5) then
return true
else
if hilight (gBtn6) then
return true
else
if hilight (gBtn7) then
return true
else
if hilight (gBtn8) then
return true
else
if hilight (gBtn9) then
return true
else
return false
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end
on CheckGlobalHilight
set count = 28
set GHilightStatus = FALSE
repeat while (GHilightStatus = FALSE and count < 37)
set count = count + 1
if rollover(count) then
set GHilightStatus = TRUE
else
if rollover(47) then
set GHilightStatus = true
else
if rollover(48) then
set GHilightStatus = true
end if
end if
end if
end repeat
return GHilightStatus
end
on EGlobalRollover2
RolloverJob(gQuest)
if (the MouseV < 250) then
if hilightPullDown (gBtn1) then
return true
else
if ObjectP(gBtn17) then
if hilight (gBtn17) then
return true
else
if ObjectP(gBtn18) then
if hilight (gBtn18) then
return true
end if
end if
end if
end if
end if
else
if rollover(38) then
if gTheHelpIsOn = 1 then
puppetsound "SE142100.AIF"
updatestage
repeat while rollover(38)
nothing
end repeat
end if
else
if donthilight (gBtn2) then
return true
else
if donthilight (gBtn3) then
return true
else
if hilight (gBtn4) then
return true
else
if hilight (gBtn5) then
return true
else
if hilight (gBtn6) then
return true
else
if hilight (gBtn7) then
return true
else
if hilight (gBtn8) then
return true
else
if hilight (gBtn9) then
return true
else
return false
end if
end if
end if
end if
end if
end if
end if
end if
end if
end if
end
on DemoRolloverBYL
hilight(gBtn4)
end
on KillBYLButton
hidecontrol(gBtn4)
set gBtn4 = 0
end
on InitSoundsE
setnewsound (gBtn1, "SE140800.AIF")
setnewsound (gBtn2, "SE141700.AIF")
setnewsound (gBtn3, "SE141600.AIF")
setnewsound (gBtn4, "SE141000.AIF")
setnewsound (gBtn5, "SE141100.AIF")
setnewsound (gBtn6, "SE141200.AIF")
setnewsound (gBtn7, "SE141300.AIF")
setnewsound (gBtn8, "SE010251.AIF")
setnewsound (gBtn9, "SE141500.AIF")
setnewsound (gQuest, "SE143000.AIF")
end